package io.github.junxworks.qt.modules.stock.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.github.junxworks.qt.modules.stock.dto.TsQueryCondition;
import io.github.junxworks.qt.modules.stock.mapper.StockMapper;
import io.github.junxworks.qt.modules.stock.service.StockService;
import io.github.junxworks.qt.modules.stock.vo.DStockBlockTradeVo;
import io.github.junxworks.qt.modules.stock.vo.DStockCompanyVo;
import io.github.junxworks.qt.modules.stock.vo.DStockFinaMainbzVo;
import io.github.junxworks.qt.modules.stock.vo.DStockForecastVo;
import io.github.junxworks.qt.modules.stock.vo.DStockHoldernumberVo;
import io.github.junxworks.qt.modules.stock.vo.DStockHoldertradeVo;
import io.github.junxworks.qt.modules.stock.vo.DStockRepurchaseVo;
import io.github.junxworks.qt.modules.stock.vo.DStockToptenFloatholdersVo;
import io.github.junxworks.qt.modules.stock.vo.DStockToptenHoldersVo;

@Service
public class StockServiceImpl implements StockService {

	@Autowired
	private StockMapper stockMapper;

	@Override
	public List<DStockForecastVo> queryStockForecast(TsQueryCondition condition) {
		return stockMapper.queryStockForecast(condition);
	}

	@Override
	public List<DStockFinaMainbzVo> queryMainBz(TsQueryCondition condition) {
		return stockMapper.queryMainBz(condition);
	}

	@Override
	public DStockCompanyVo queryStockCompany(String tsCode) {
		return stockMapper.queryStockCompany(tsCode);
	}

	@Override
	public List<DStockBlockTradeVo> queryBlockTrade(TsQueryCondition condition) {
		return stockMapper.queryBlockTrade(condition);
	}

	@Override
	public List<DStockToptenFloatholdersVo> queryFloatHolders(TsQueryCondition condition) {
		return stockMapper.queryFloatHolders(condition);
	}

	@Override
	public List<DStockRepurchaseVo> queryRepurchase(TsQueryCondition condition) {
		return stockMapper.queryRepurchase(condition);
	}

	@Override
	public List<DStockHoldertradeVo> queryHoldertrade(TsQueryCondition condition) {
		return stockMapper.queryHoldertrade(condition);
	}

	@Override
	public List<DStockHoldernumberVo> queryHoldernumber(TsQueryCondition condition) {
		return stockMapper.queryHoldernumber(condition);
	}

	@Override
	public List<DStockToptenHoldersVo> queryHolders(TsQueryCondition condition) {
		return stockMapper.queryHolders(condition);
	}

}
